package service.impl;

import dao.FilmMapper;
import org.springframework.stereotype.Service;
import pojo.Film;
import service.FilmService;

import javax.annotation.Resource;
import java.util.List;
@Service("oo")
public class FilmServiceImpl implements FilmService{
    @Resource(name="pp")
    private FilmMapper cf;

    public FilmMapper getCf() {
        return cf;
    }

    public void setCf(FilmMapper cf)
    {
        this.cf = cf;
    }

    public List<Film> getBypage(int index, int size) {
        return cf.getBypage(index, size);
    }
    public int count() {
        return cf.count();
    }

    public int delete(int id) {
        return cf.delete(id);
    }

    public int insert(Film fo) {
        return cf.insert(fo);
    }

    public int update(Film ff) {
        return cf.update(ff);
    }

    public Film selectid(int id) {
        return cf.selectid(id);
    }
}

